package com.szt.sy.entity.system;

import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.annotations.TableName;
import com.szt.sy.entity.base.BaseUuidEntity;

import lombok.Data;

/***
 * 角色
 * 
 * @author wwy
 *
 */
@Data
@Alias("Role")
@TableName(value = "sys_role")
public class Role extends BaseUuidEntity {
	
	/** 根节点id(不存在的，当做顶层角色的父节点) */
	public static final String ROLE_ROOT_ID = "0";
	
	/** 空权限(增删改查) */
	public static final String EMPTY_RIGHT = "0";
	
	/** 空权限（链接访问权限） */
	public static final String EMPTY_RIGHTS = "";
	
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private String roleName;
	private String rights;
	private String parentId;
	private String adds;
	private String dels;
	private String edits;
	private String querys;
	/** 首页地址 */
	private String indexUrl;
	/** 是否可以删除 */
	private Short delAble;
	
	public static class DelAble {
		public static Short NO = -1;
		public static Short YES = 1;
	}
}
